home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 286_01 / xhline.c < prev   
Text File  |  1989-05-23  |  384b  |  20 lines

  1. #include <stdio.h>
  2. #include <gds.h>
  3.  
  4. int XHLine(x,y,boundary,leftx,rightx)
  5. int x,y,boundary,*leftx,*rightx;
  6. {
  7.     int ret;
  8.  
  9.     x+=ORGX;
  10.     y+=ORGY;
  11.     if (outside(x,y)) return(-1);
  12.     ret=hlnlmt(x,y,(boundary ? 0xffff : 0),STYLE,leftx,rightx);
  13.     if (!ret) {
  14.         *leftx+=ORGX;
  15.         *rightx+=ORGX;
  16.     }
  17.     return(ret);
  18. }
  19.  
  20.